package com.wiloon.java8x.basic.reflect;

/**
 * Created by Roy on 2016/3/14;
 */

/**
 * 父类
 * @author syh
 *
 */

public class Parent {

    public String publicField  = "1";

    String defaultField = "2";

    protected String protectedField = "3";

    private String privateField = "4" ;

    public void publicMethod() {
        System.out.println("publicMethod...");
    }

    void defaultMethod() {
        System.out.println("defaultMethod...");
    }

    protected void protectedMethod() {
        System.out.println("protectedMethod...");
    }

    private void privateMethod() {
        System.out.println("privateMethod...");
    }

}